import request from './api';

// 获取所有商品分类
export function getCategories() {
  return request({
    url: '/api/category',
    method: 'get'
  });
}

// 获取所有品牌
export function getBrands(brand = null) {
  return request({
    url: '/api/brand/getBrand',
    method: 'post',
    data: brand
  });
}